package mdm.led.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@Configuration
@PropertySource({ "classpath:config.properties" })
public class LocalConfig {

    @Value("${database}")
    private String database;

    @Value("${mysqlusername}")
    private String username;

    @Value("${mysqlpassword}")
    private String password;

    @Value("${mysql_path}")
    private String mysql_path;

    @Value("${system_backup}")
    private String system_backup;

    @Value("${OBJECT_PATH}")
    private String OBJECT_PATH;
    
    @Value("${picture_upload}")
    private String picture_upload;
    

    public String getPicture_upload() {
		return picture_upload;
	}

	public String getOBJECT_PATH() {
		return OBJECT_PATH;
	}

   


    public String getDatabase() {
        return database;
    }




    public String getUsername() {
        return username;
    }




    public String getPassword() {
        return password;
    }




    public String getMysql_path() {
        return mysql_path;
    }




    public String getSystem_backup() {
        return system_backup;
    }




    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyConfigure() {
        return new PropertySourcesPlaceholderConfigurer();
    }
}